package day4;

/**
 * @author oldliu
 * @since 1.0
 */
public class Bus {
    String lineno;//路线
    String from,to;
    int money;
    public Bus(String line,String f,String to,int m){
        this.lineno=line;
        this.from=f;
        this.to=to;
        this.money=m;
    }
    public void show(){
        System.out.println("这辆"+lineno+"公交车,从"+from+"开往"+to+",票价是"+money+"元，到站停车");
    }
}
